package com.lfz.quality_effect.mapper;

import com.lfz.quality_effect.model.entity.TCollectionBalance;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.lfz.quality_effect.model.vo.EleScoreRankVO;
import com.lfz.quality_effect.model.vo.ScoreRankVO;
import org.apache.ibatis.annotations.Param;

import java.math.BigDecimal;
import java.util.List;
import java.util.Map;

/**
 * <p>
 * 收结存统计表 Mapper 接口
 * </p>
 *
 * @author Destiny
 * @since 2023-03-05
 */
public interface TCollectionBalanceMapper extends BaseMapper<TCollectionBalance> {


    String getMaxTime();

    /**
     * 获取民商事结案率趋势图
     * @param paramMap
     * @return
     */
    List<EleScoreRankVO> getCivilTrend(Map<String, Object> paramMap);


    /**
     * 获取总结案率趋势图
     * @param paramMap
     * @return
     */
    List<EleScoreRankVO> getTotalTrend(Map<String, Object> paramMap);

    /**
     * 获取标准法院
     * @param paramMap
     * @return
     */
    List<EleScoreRankVO> getStandardCourt(Map<String, Object> paramMap);

    List<EleScoreRankVO> getTotalStandardCourt(Map<String, Object> paramMap);

    void updateCivilRate(Map<String, Object> paramMap);

    void updateTotalRate(Map<String, Object> paramMap);
}
